package org.jeecg.chase.modules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.jeecg.chase.modules.entity.AdhCouponInfo;

import java.util.List;
import java.util.Map;

/**
 * @author leikai
 * @version 1.0
 * @description: 优惠券
 * @date 2022/02/13/0013 15:09
 */
public interface AdhCouponInfoMapper extends BaseMapper<AdhCouponInfo> {

    @Update("update adh_coupon_info set coupon_status=#{status} where id=#{id}")
    void updateStatus(@Param("id") String id, @Param("status") Integer status);

    List<Map<String, Object>> queryCouponList(@Param("merchId") String merchId, @Param("openId") String openId);
}
